import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './assets/request.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';    //引入element  css库
import AMap from 'vue-amap' //入口文件中引入高德地图

Vue.use(AMap)
Vue.use(ElementUI)
Vue.prototype.$http = axios
Vue.config.productionTip = false;



AMap.initAMapApiLoader({
  key: '7938c72a3a5a6bfd0728505429ee08f2',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor','AMap.Geocoder'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
